package com.steven.door;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;


import org.litepal.LitePal;

public class App extends Application {
    @SuppressLint("StaticFieldLeak")
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        LitePal.initialize(this);//初始化数据库
    }

    public static Context getMContext() {
        return mContext;
    }

}
